package com.astrocsr.security;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.security.core.AuthenticationException;
import org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler;

public class AuthenticationFailureHandler extends
SimpleUrlAuthenticationFailureHandler {

	public AuthenticationFailureHandler() {
	}

	@Override
	public void onAuthenticationFailure(HttpServletRequest request,
			HttpServletResponse response, AuthenticationException auth)
			throws IOException, ServletException {
		try {
			System.out.println("Catch Failure Login");

			
			super.onAuthenticationFailure(request, response, auth);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
